package com.itheima.jdbcdemo.dao;

import com.itheima.jdbcdemo.domain.Student;

import java.util.ArrayList;

public interface StudentDao {
    //查询所有的学生
    public abstract ArrayList<Student> findAll();
    //根据id查询学生
    public abstract Student findById(Integer id);
    //新增学生
    public abstract int insert(Student student);
    //修改学生
    public abstract int update(Student student);
    //删除学生
    public abstract int delete(Integer id);
}
